package resilienceManager.qmul.gemom;

/**
 * The namespace class, use to save the information of namespace and 
 * include topic 
 * 
 * COPYRIGHT DISCLAIMER
 * Synopsis: All the source codes presented in this document are intellectual
 * properties of Queen Mary, University of London.
 * 
 * @year 2010
 * @author Peng Jiang, John Bigham, Jiayi Wu Jinfu Wang------------QMUL
 * @version 1.0 
 */


public class namespace {
	
	/**
	 * the main param
	 * */
	int id; // the id of namespace
	String value; // the content of the namespace
	
	/**
	 * the constructor for namespace
	 * @param id: int
	 * @param text: String
	 * */
	
	namespace(int id, String text)
	{
		this.id=id;
		this.value=text;
	}
	
	double getMeanRate(){
//TODO get mean rate from db, (extened the namespace table). from a hashtable		
		return  0;
	}
	
	/**
	 * get the id of the name space
	 * @return int: id
	 * */
	int getID(){
		return this.id;
	}
	
	String getcontent(){
		
		return this.value;
	}
	

}
